Skip to content

Instantly share code, notes, and snippets.

@ykarikos
ykarikos / png2svg.sh
Created June 7, 2012 22:17
Convert png to svg using imagemagick and potrace
#!/bin/bash
if [ "$1" == "" ]; then
echo Usage: $0 pngfile
exit 0;
fi
FILE=`basename $1 .png`
if [ ! -e $FILE.png ]; then
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script src="Scripts/jquery-1.9.1.min.js"></script>
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<script src="Scripts/isRockFx.js"></script>
<script>
$(function () {
@fabriziosalmi
fabriziosalmi / rules.md
Last active January 4, 2026 05:56
rules.md

Never apply one or more of such methods:

Here is a list of 100 typical "vibecoding" issues—artifacts of coding based on intuition, haste, hype, or LLM copy-pasting without engineering rigor—ranked from critical security flaws to minor aesthetic annoyances.

  1. Hardcoded API Keys and Secrets (Immediate security compromise that bots will scrape in seconds).
  2. Committed .env files (Defeats the entire purpose of environment variables and leaks configuration).
  3. Committed node_modules or vendor folders (Bloats the repository size and causes cross-platform dependency hell).
  4. SQL Injection vulnerabilities via string concatenation (The fastest way to lose your database because you didn't use parameterized queries).
  5. chmod 777 permissions on scripts (Lazy permission handling that opens the door to privilege escalation).
  6. Passwords stored in plain text (Hashing and salting are not optional features).
@SayantanRC
SayantanRC / jellyfin-samsung.md
Last active January 4, 2026 05:54
Sign Jellyfin for Samsung TVs

Prerequisite

This guide is based on using an Ubuntu VM. The whole process will take several hours when doing for the first time. I faced issues with Windows 11, but you are free to try it. There are helpful comments below for Windows users.

Please read all the steps first before proceeding.

Steps

  1. Get ubuntu 18.04 LTS. Create a VM if needed.
  2. Install Tizen Studio from here: https://developer.tizen.org/development/tizen-studio/download
  3. Run the .bin file from terminal
@minimaxir
minimaxir / CLAUDE.md
Created January 2, 2026 01:53
Python CLAUDE.md (20260101)

Agent Guidelines for Python Code Quality

This document provides guidelines for maintaining high-quality Python code. These rules MUST be followed by all AI coding agents and contributors.

Your Core Principles

All code you write MUST be fully optimized.

"Fully optimized" includes:

@pjortiz
pjortiz / Install and Run Space Engineers with Pulsar (Plugin Loader) on Linux.md
Last active January 4, 2026 05:51
Install and Run Space Engineers with Pulsar (Plugin Loader) on Linux

Adapted from opekope2/Space Engineers Plugin Loader Linux.md

Info

As I am new to Space Engineers and the plugin community, I was looking for solutions to run the game with plugins on Linux and found little support. I hope this helps others who come after me.

Due to changes in how the new Pulsar v2 is structured in the release zip file, the current version of StarCpt/SpaceEngineersLauncher (v1.0.10) is unable to handle unpacking and installing Pulsar. In addition, the new StarCpt/Pulsar-Installer is not very practical on Linux. The old loader will not be used for Pulsar going forward, so you will need the following steps to get the game working.

Setup

@banteg
banteg / readme.md
Last active January 4, 2026 05:51
uninstall beads

Beads Uninstall Script

A comprehensive uninstall/cleanup script for Beads (bd) that removes all traces of the tool from a system.

Usage

./scripts/uninstall.sh            # dry-run (scan $HOME)
./scripts/uninstall.sh --apply    # perform cleanup
./scripts/uninstall.sh --root DIR --apply
@ScriptedAlchemy
ScriptedAlchemy / CursorTools.json
Created January 31, 2025 03:54
Reverse Engineering cursor prompts
{
"tools": [
{
"type": "function",
"function": {
"name": "codebase_search",
"description": "Find snippets of code from the codebase most relevant to the search query.\nThis is a semantic search tool, so the query should ask for something semantically matching what is needed.\nIf it makes sense to only search in particular directories, please specify them in the target_directories field.\nUnless there is a clear reason to use your own search query, please just reuse the user's exact query with their wording.\nTheir exact wording/phrasing can often be helpful for the semantic search query. Keeping the same exact question format can also be helpful.",
"parameters": {
"type": "object",
"properties": {